{% load staticfiles %}
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">

        <link rel="shortcut icon" href="{% static '' %}velonic/img/favicon_1.ico">

        <title>{{ article.title }}</title>

        <!-- Bootstrap core CSS -->
        <link href="{% static '' %}velonic/css/bootstrap.min.css" rel="stylesheet">
        <link href="{% static '' %}velonic/css/bootstrap-reset.css" rel="stylesheet">

        <!--Animation css-->
        <link href="{% static '' %}velonic/css/animate.css" rel="stylesheet">

        <!--Icon-fonts css-->
        <link href="{% static '' %}velonic/css/font-awesome.css" rel="stylesheet" />
        <link href="{% static '' %}velonic/css/ionicons.min.css" rel="stylesheet" />
        <link href="{% static '' %}velonic/css/material-design-iconic-font.min.css" rel="stylesheet" />

        <!--bootstrap-wysihtml5-->
        <link rel="stylesheet" type="text/css" href="{% static '' %}velonic/css/bootstrap-wysihtml5.css" />


        <!-- Custom styles for this template -->
        <link href="{% static '' %}velonic/css/style.css" rel="stylesheet">
        <link href="{% static '' %}velonic/css/helper.css" rel="stylesheet">
        

        <!-- HTML5 shim and Respond.js IE8 support of HTML5 tooltipss and media queries -->
        <!--[if lt IE 9]>
          <script src="{% static '' %}velonic/js/html5shiv.js"></script>
          <script src="{% static '' %}velonic/js/respond.min.js"></script>
        <![endif]-->


    </head>


    <body>

        <!-- Aside Start-->
        {% include 'velonic/block/side_nav.html' %}
        <!-- Aside Ends-->


        <!--Main Content Start -->
        <section class="content">
            
            <!-- Header -->
            {% include 'velonic/block/header.html' %}
            <!-- Header Ends -->
            


            <!-- Page Content Start -->
            <!-- ================== -->

            <div class="wraper container-fluid">

                <div class="row">
                    
                    <!-- Left sidebar -->
                    <div class="col-sm-2">
                        <a href="{% url 'articleList' %}" class="btn btn-primary btn-block">FAQ</a>

                        <div class=" m-t-20 p-0">
                            <div class="list-group no-border mail-list">
                                {% for cate in category_list %}
                                    <a href="{% url 'articleList' %}?c={{ cate.id }}" class="list-group-item"><span class="fa fa-circle {% cycle 'text-info' 'text-warning' 'text-purple' 'text-pink' 'text-success' %} pull-right"></span>{{ cate.name }}({{ cate.article_set.all.count }})</a>
                                {% endfor %}
                            </div>
                        </div>
                    </div>
                    <!-- Left sidebar -->
                    
                    <!-- Right sidebar -->
                    <div class="col-sm-10">

                        <!-- Message -->
                        <div class="panel panel-default">
                            <div class="panel-heading"> 
                                <h3 class="panel-title text-center">{{ article.title }}</h3>
                            </div>
                            <div class="panel-body">
                                <div class="media m-b-30 ">
                                    <a href="#" class="pull-left">
                                         <img alt="" src="{% static '' %}velonic/img/avatar-2.jpg" class="media-object thumb-sm">
                                    </a>
                                    <div class="media-body">
                                        <span class="media-meta pull-right">{{ article.pub_date }}</span>

                                        <h4 class="text-primary m-0">Admin</h4>
                                        <small class="text-muted">From: admin@shangshudb.com</small>
                                    </div>
                                </div> <!-- media -->

                                {% autoescape off %}
                                {{ article.content }}
                                {% endautoescape %}
                                <hr/>


                            </div> <!-- panel-body -->
                        </div> <!-- End panel -->
                        <!-- End message -->

                        <!-- Replay -->
                        <!-- Replay -->

                    </div> <!-- Col-->
                
                </div><!-- End row -->

            </div> <!-- END Wraper -->

            <!-- Footer Start -->
            {% include 'velonic/block/footer.html' %}
            <!-- Footer Ends -->



        </section>
        


        <!-- js placed at the end of the document so the pages load faster -->
        <script src="{% static '' %}velonic/js/jquery.js"></script>
        <script src="{% static '' %}velonic/js/bootstrap.min.js"></script>
        <script src="{% static '' %}velonic/js/pace.min.js"></script>
        <script src="{% static '' %}velonic/js/wow.min.js"></script>
        <script src="{% static '' %}velonic/js/jquery.nicescroll.js" type="text/javascript"></script>

        <!--form validation-->
        <script type="text/javascript" src="{% static '' %}velonic/js/wysihtml5-0.3.0.js"></script>
        <script type="text/javascript" src="{% static '' %}velonic/js/bootstrap-wysihtml5.js"></script>

        <script>
            jQuery(document).ready(function(){
                $('.wysihtml5').wysihtml5();
            });
        </script>

        <script src="{% static '' %}velonic/js/jquery.app.js"></script>


    {% include 'velonic/block/footer_comm.html' %}


    </body>
</html>
